﻿@model MvcMusicStore.Album

@{
    ViewBag.Title = "Purchase Album";
}

<h2>Purchase Album</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("PurchaseAlbum", "Cart", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Album</legend>
        @Html.HiddenFor(model => model.id)
        @*<div class="display-label">titleSong</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.titleSong)
        </div>

        <div class="display-label">yearSong</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.yearSong)
        </div>

        <div class="display-label">dateAdd</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.dateAdd)
        </div>

        <div class="display-label">costSong</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.costSong)
        </div>

        <div class="display-label">counterBought</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.counterBought)
        </div>

        <div class="display-label">idAuthor</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.idAuthor)
        </div>

        <div class="display-label">idGenre</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.idGenre)
        </div>

        <div class="display-label">idAlbum</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.idAlbum)
        </div>*@
        <img alt="card" src="@Url.Content("~/Content/Images/card.gif")"/>
        <p><strong>Make payment</strong></p>
        <p><em>Price:</em>
        @String.Format("{0:F}", Model.coustAlbum) $</p>
        <p>
            <input type="submit" value="Yes" />
        </p>
    </fieldset>
}

